import {defaultAxios as request } from '@/utils/http/index.js';
var api = "/api/tdengine/dataSubscription";

export function showTopics(data = {},timeout=200000) {
    return request({
      url: api + '/showTopics',
      method: 'post',
      data,
      timeout: timeout
    });
  }
  

export function deleteTopics(data = {},timeout=200000) {
    return request({
        url: api + '/deleteTopics',
        method: 'post',
        data,
        timeout: timeout
    });
}
export function syncDataSubInfo(data = {},timeout=200000) {
    return request({
        url: api + '/syncDataSubInfo',
        method: 'post',
        data,
        timeout: timeout
    });
}
export function syncDataInfo(data = {},timeout=3600000) {
    return request({
        url: api + '/syncDataInfo',
        method: 'post',
        data,
        timeout: timeout
    });
}


export function closeSyncDataSubInfo(data = {},timeout=200000) {
    return request({
        url: api + '/closeSyncDataSubInfo',
        method: 'post',
        data,
        timeout: timeout
    });
} 

export function getResCount(data = {},timeout=200000) {
    return request({
        url: api + '/getResCount',
        method: 'post',
        data,
        timeout: timeout
    });
}